<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
	function ticketSelectScene() {
		$("#ticket-dialog-div").hide();
		$("#ticket-scene-dialog-div").load("/scene/dialog.htm", function() {
			$(this).show();
		})
	}
	
	function ticketDialogSelectTicket() {
		$.ajax({
			url:"/ticket/dialogPage.htm",
			type:"post",
			data:$("#ticket-dialog-ticket-query-form").serialize(),
			dataType:"html"
		}).done(function(data) {
			$("#ticket-dialog-ticket-table").html(data);
		}) 
	}
</script>
<div id="ticket-dialog-div">
	<div class="ch-container">
		<div class="row">
			<div class="box col-md-12">
		        <div class="box-inner">
		            <div class="box-header well" data-original-title="">
		                <h2><i class="glyphicon glyphicon-edit"></i> 查询条件</h2>
		
		                <div class="box-icon">
		                    <a href="javascript:;" class="btn btn-setting btn-round btn-default"><i
		                            class="glyphicon glyphicon-cog"></i></a>
		                    <a href="javascript:;" class="btn btn-minimize btn-round btn-default"><i
		                            class="glyphicon glyphicon-chevron-up"></i></a>
		                    <a href="javascript:;" class="btn btn-close btn-round btn-default"><i
		                            class="glyphicon glyphicon-remove"></i></a>
		                </div>
		            </div>
		            <div class="box-content">
		                <form class="form-inline" id="ticket-dialog-ticket-query-form">
		                    <div class="form-group col-md-6">
		                        <label>票品名称：</label>
		                        <input name="name" type="text" class="form-control">
		                    </div>
		                    <div class="form-group col-md-6">
		                        <label>所属景区/项目：</label>
		                        <input id="ticket-dialog-scene-name-display" readonly="readonly" type="text" class="form-control">
		                        <input type="hidden" name="scenic_id">
		                        <a href="javascript:;" class="btn btn-default" onclick="ticketSelectScene();">选择</a>
		                    </div>
		                    <div class="clearfix"></div><br>
		                    <div class="form-group col-md-10">
		                        <label>有效时间：</label>
		                        <input name="from_time" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="form-control"/>
		                        <label> - </label>
		                        <input name="end_time" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="form-control"/>
		                    </div>
		                    <div class="form-group col-md-2">
		                    	<a href="javascript:;" class="btn btn-default" onclick="ticketDialogSelectTicket();">查询</a>
		                    </div>
		                    <div class="clearfix"></div><br>
		                </form>
		
		            </div>
		        </div>
		    </div>
		</div>
		<div class="row">
			<div class="box col-md-12">
	   			<div class="box-inner">
	   				<div class="box-header well" data-original-title="">
	       				<h2><i class="glyphicon glyphicon-user"></i> 票品列表</h2>
	
	       				<div class="box-icon">
				            <a href="#" class="btn btn-setting btn-round btn-default"><i class="glyphicon glyphicon-cog"></i></a>
				            <a href="#" class="btn btn-minimize btn-round btn-default"><i
				                    class="glyphicon glyphicon-chevron-up"></i></a>
				            <a href="#" class="btn btn-close btn-round btn-default"><i class="glyphicon glyphicon-remove"></i></a>
				        </div>
	   				</div>
	   				<div class="box-content" id="ticket-dialog-ticket-table">
	   					<jsp:include page="dialog_table.jsp"/>
				    </div>
	   			</div>
	   		</div>
		</div>
	</div>
</div>
<div id="ticket-scene-dialog-div" style="display:none;">
</div>
